﻿<%@ Page Language="C#" MasterPageFile="~/admin.master" AutoEventWireup="true" Inherits="MediaMonitor.Admin.User_Mgmt_log"
    Theme="default" Title="User Management - Log" CodeBehind="user-mgmt-log.aspx.cs" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="Server">
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script src="../rad-scripts/rad.js" type="text/javascript"></script>
    </telerik:RadCodeBlock>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Body" runat="Server">
    <div style="padding: 5px; width: 90%; position: relative;">
              
               <telerik:RadAjaxPanel ID="pnlUpdate" runat="server" RestoreOriginalRenderDelegate="false">
                <asp:HiddenField ID="hdnUserID" runat="server" Value="0" />
           <telerik:RadGrid ID="radGrid" runat="server" AllowFilteringByColumn="True" AllowPaging="True"
                AllowSorting="True" GridLines="None" Skin="Hay" OnNeedDataSource="radGrid_NeedDataSource"
                Width="100%" AutoGenerateColumns="false" GroupingSettings-CaseSensitive="false"
                PageSize="15">
                <MasterTableView DataKeyNames="SiteUserID" ShowHeadersWhenNoRecords="false" EnableNoRecordsTemplate="true" ExpandCollapseColumn-Display="true" GroupLoadMode="Client">
                <NoRecordsTemplate>
                  <div>There are no records to display</div>
                </NoRecordsTemplate>
                    <Columns>
                        <telerik:GridBoundColumn AutoPostBackOnFilter="false" AllowFiltering="false" DataField="UserName" HeaderText="User" />
                        <telerik:GridBoundColumn AutoPostBackOnFilter="true"  HtmlEncode="false" DataFormatString="{0:d}" DataField="LoginDate" HeaderText="Login Date" />
                        <telerik:GridBoundColumn AutoPostBackOnFilter="true" DataField="LoginTime" HeaderText="Time" />
                        <telerik:GridBoundColumn AutoPostBackOnFilter="true" DataField="IpAddress" HeaderText="Ip Address" />
                        
                    </Columns>
                </MasterTableView>
                 <ClientSettings>
                    <Scrolling AllowScroll="false" />
                    <ClientEvents OnFilterMenuShowing="filterMenuShowing" />
                </ClientSettings>
                <FilterMenu OnClientShowing="MenuShowing" />
            </telerik:RadGrid>
             </telerik:RadAjaxPanel>
       
    </div>
</asp:Content>
